package router

import "github.com/gin-gonic/gin"

func BaseRoute(r gin.IRouter) {
	r.GET("/hello1", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "hello world",
		})
	})

	r.GET("/book/query.json", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "book",
		})
	})

	r.POST("/book/update.json", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "update book",
		})
	})

	r.POST("/book/delete.json", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "delete book",
		})
	})
}
